<template>
  <div>
    <!-- 头部 -->
    <div>
       <van-nav-bar title="标题" left-text="返回"  right-text="搜索" left-arrow @click-left="onClickLeft" >
            <template #title>
                <van-search
                v-model="value"
                shape="round"
                background="#FFFFFF"
                placeholder="请输入搜索关键词"
                />
            </template>
        </van-nav-bar>
    </div>
    <!-- 头部 -->

    <!-- 主体 -->
    <div>
        <div class=" ti">历史搜索</div>

        <div class="au yo">暂无搜索历史</div>
    </div>
    <!-- 主体 -->

  </div>
</template>

<script>
export default {
data() {
    return {
      value: '',
    };
  },

  methods:{
    onClickLeft(){
      this.$router.back()
    }
  }
}
</script>

<style lang="less" scoped>
.yo{
    width: 360px;
    height: 100px;
    text-align: center;
    line-height: 100px;
    border-bottom: 1px solid black;
}

.ti{
    width: 360px;
    height: 50px;
    line-height: 50px;
    // background-color: red;
    margin: auto;
    margin-top: 10px;
}

.au{
    margin: auto;
}
</style>